package com.aaa.demo04;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test04 {
    public void main(String[] args) {
        Upan<Object> objectUpan = new Upan<>();
        objectUpan.usb(66);
        Mouse mouse = new Mouse();
        mouse.usb("66");
    }

    interface USB<T>{
        public void usb(T t);
    }

    class Upan<T> implements USB<T> {

        public void usb(T t) {
            System.out.println("aaaaa");
        }
    }
    class Mouse implements USB<String>{
        public void usb(String s){
            System.out.println("bbbbb");
        }
    }
}
